﻿#pragma once
#include "CommonDef.h"
class UserModel : public Singleton<UserModel>
{
public:
    UserModel();

    const UserInfo& getUserInfo() const;

    bool readUserFromFile();

    bool saveUser2File(const UserInfo& playerInfo);

    bool hasUser();
private:
    UserInfo m_userInfo;
    static const std::string s_userInfoPath;
};

